Change mask formatter and rewrite it after safe