Fix deprecation warnings.
Use mapc as we don't need the return value.