add judge, flash has bug