Fixing bug with indentation error