Use seperate flags for invalid bounds and rect.