bug: same username in multiple contexts led to errors with user detection