fixed error when tags are none