fix for isComplete for optional masks