fix when empid is 0