fix read more than 2 rect problem