Trying to fix _writepage