several bug fixed, including many space in name problems