fix for https://github.com/dasmoth/dalliance/issues/53

as suggested by Thomas