fix homepage route/no login crash