fix eval sql when dynamic used