fixed source rect and text update issue