bugfix in url generating when auto_item is used.