correct curly brace collapse and indent