fixed bugged caused by new keyword