Fixed bug with resources path - take 2