improved corner case handling for dose response curves