fix read_position