fixed bug issue #3