bug #4 fixed