Fix DB value type error