port fix from saga-python