Fixed UID range bug where * was calculated wrongly