fixes a controller