fix auto-reloading