Fixing bug with declared resources.