resolve issue #10 (bug)