LineItem bugfix b21c570 (fixes #19)