Fixed some code generation issues

The numeric column returned the wrong list which is now fixed.