Bug with write fixed 2