A few corrections I made while porting to Node.