fix homepage null bug