fixed issue #249