fix shader switching