Fixing the warnings

Fixed all of the warnings.