Solve bug when a session starts or finishes at 00.00