fixing bugs with edit tags