resolve Cannot call method 'push' of undefined when updating tags