fix issue #19, reported by vlmarek, thanks!