Attempting to fix empty interval issue