fix moment deprecation warning