Fixed deprecated moment calls.