Fixed some problems with url registration