remove unbound var
fix db regression