fixed small error with resource positioning