Fixed compilation errors due to crash during code reformatting