Fixed defining formatter several times