Fix autoreload issues in development mode