Fixed function name typo.

Also fixed error on completing url without any tags set.