Fix logic for ensuring auto_reload