fixed bug with carousel