Fix getUserById method