fixing issues with controllers