write on read fixes