Fix the bug which led to crash about AssetsManager