fixed 'return pyramid' compile err, now segfault