fixed bug with span in name