fixing errors with controllers
fixing errors