fixed bug in carousel