bug fix.
closed #20.