fixed minor bug with wrong table column