Fixed a bug in momentFormat filter