Fixed maxcolumns bug and improved custom order setting