wave drawing distance fix