fixed error in parsing position