fix when empid is 0
fix when empid 0