Fixing formatMap reference