fix interval error