fixing bug in interp order