Fix history for small devices (was broken)