fixed bug with toggle date