finally fixed the Resources reference issue