fixed the rect assert issue