Fixes nested list formatting