Fixed bug reported by Stuart Midgley about what happens when there are no