fix carousel crashing because of None in on__offset