Refine some codes in Entrance.

Signed-off-by: 核心力量 <kernelforce@gmail.com>