fixing bug found in DB object