Fixed a bug in atan2. It gave a division by zero error for calls like