Change location bar checking logic.