Nightfall problem solution