Check this article for a solution. You probably forgot to modify the Write line.