Fixes the syntax error in resources.
Fixes few warnings.