Fix parsePosition method