Fix crash issue when self.frame change after initializing