Fix rectangle using the wrong paint brush