fixed a bug when formatting start block