fix index on r_ready