Parse masks with a single number correctly.