fixed issue with tags not being an array throwing a notice