fix issue #249