correct bad format