Fixing logic for day page