BP-807, fix error if phase is ending between a duration slot
1 file changed