Fix carousel error on page loading