fix a critical bug #3