Fixed bug reading tag info.