rect fix

fixed the broken rect indices