Fix rect vector problem