Fix for #71

See discussion here: http://jeelabs.net/boards/9/topics/1792?r=2344