fixed home page loading bug