fix a bug caused by the type of some default properties