Hopefully last fix for this.direction.toString instead of this.direction.