Fixes of masks padding.