[models] Fixed stray x in infer method