fixed carousel bug