fix shader reload crash.