fixed seg fault in processorder