fix double instance bug in uiview for category