Fix gallery hover bug