Fix leap bug