fixing tags inside a space