fixed the unrecognized extesion crash caused by the formatter register function