fixing resource paths