Fixed the bug where the home link is not active sometimes.