fixed bug when con name has a space in it