fixed crash error