Fixes purchase rows not being in table