Fixed issue of midnight calls