Fixing a recursive dive caused by dispatching the incorrect write method.