Fixes the problem reported in #1312 reported by @sjperkins. Co-authored-by: André Offringa <offringa@astron.nl>
a4231ee