Possible fix for #276

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