fix INVALID_STATEMENT error for INSERT