Fix broken delay after ended