Fixes some warnings.