Added instance check on formatter