Fix for https://github.com/ska-sa/meqtrees/issues/853

See https://github.com/ska-sa/meqtrees/issues/853