fix bug #490

fix issue #490