Fix error reporting inside the setting

without thsi patch, at least r-m always printed the last key for all elements