fix bug date