fix case when uid is 0