Fixing time overlap algorithm