Fix for issue #18: reseting of name and other fields after type changing