fixed some carousel bugs