fix bug in overloading User constructor typeof returns string