bug fix (issue #2)