There seems to be a bug with the current implementation that causes problems if you create a row but no sells. This just works around that bug.