Fix indentation

Convert hard tabs to soft tabs according to coding style.
Fix wrong indenting.