fixed jquery bug with autotagging