Fix Write Error