fix bug in carousel