fixed bug when changing date in shell