fix the resize logic of container