Fixed bug about processing dynamic SQL.