Fixed and hidding warnings when checking the code.