Fixed a division-by-zero case in rdot