fixed several bugs relative to some arguments like reading_position