Fix home page detection