fix shader exceptions