fix home page detection