fixed insert error for int when provided value is ''