bugfix in flexible mask generatiion