fix case where tag array is null and a tag is added to it
build