wrong type if error