fixed deprecation warning with moment