Removed additional writing of zeros