Fixed minor bug with interval setting