fix homepage tab deactivation bug