Fixed issue with adding date to calendar