Fixed loading resource bug
..