Fixed bug showing wrong user ID in some cases