fixed sql context error dynamic