fixed additional places where the returned polynomial had the wrong variable
fixed == operator