make the active_only flag work