Fixed bug when changing code formats.