Fixing errors in writeit