fixed dumb error in write