prevent user mode raising KeyError