Fixing the warnings during compilation