Fixing missing resource bug