Fixes #1047
Merge pull request #1068 from aodn/issue-1047

Fixes #1047