fixed paused_at in loop