Fixed bug causing GC compactions to get skipped for inactive ranges