Fixed bug if a ctor function has empty name