fix bug with spaces in tags