Fixing wrong writing