is_page condition fix