[Bugfix] Fix some crash