solved bug. array index out of bound for reading tags