fix find all record in database error