fixed a bug with controller reloading

fixed a bug with controller reloading from last commit