fixed error in parsing