resourcepath fix