prefered vendor fixed to_i issue