Fixed bug on insert select.