Coding style, fixing segfault in kernel/object