fix a critical bug;