Fix bug with suspend->temp->scheduled overlapping