fix wrong logic checking current home page