Fix bug with resource url