Fix moment deprecation warnings. Issue: #416