Clear error message if the property type is incorrect