fixed tag editing bug