fix screen record crash.