Fix return segfault. Some pretty printing