Add `cua-rect` require so that tests pass
Fix order of operations