fix a layoutsubviews bug