fixed bug where the container wasn't resizing properly