Fixed bug with custom url