Fix double registration of newproc function.