tuserid is NULL bugfixed