Fixed bug of content not expanding on page load