Fix bug: If superview is nil, the subview's frame not updated.