end day bug fixed