fix the mask precision issue.