fixed something about crash problem