bugfix for cases of missing userIdd