Indentation on these cases seems to be inconsistent as well. I think you editor might be switching between tabs and spaces. Please use tabs with 1 tab being 4 spaces.