Fixed errors with update_tag_records and cleared crashes on its path