math: Fix rect2