code fix for url