fix nsdate type bug