correcting the resource path