Fix for #236
Merge pull request #245 from aodn/issue236

Fix for #236