fixed bug #7

ref #7