bugfix for simple-mask