Fix bug about checking pause callback