fix issue with nil user