issue #8. thx @varanus!