fix for overflowing nested lists