range and plotpole fix