fixing resource url