fixed some bugs related to date and async schedule