Fixed error with resource IDs