fix a severe bug