fix bug issue#2