Fix #245. (Fix fix for #242. Again.) Note to self: now would be a good time to get some caffeine :p

Signed-off-by: Ross Allan <rallanpcl@gmail.com>