Fixing interval logic