fix the type error
done with db_reader