Fixes error on clean_urls. Closed #1071