Added interrupts guard in colorRectangle