Fixed list reversing problem