indentation fix
fixed issues reported by Valgrind