Fix executing command before load the url