fixed some flickering issues on the controller