Fixes compatibility with moment version 2.8