fixed issue #20

used the example from the link in issue #20 to create this quick fix.