1. fixed self clip
2. fix stub rectangle caculation