correct some indention level and fix core on HP-UX