applied fix submitted by @DeHecht ( #191 )