Fix moment reference issue