Fix warning with moment.js