Fix for #1728. Fixed issues with indentation.