Fix loop at pausing