Patching in layer interval fix -- interval checks were being skipped if they were after a removed interval