Fixed some URL comparison issues