fixing a bug that could happen in unmasked function, when the number is negative