Fixed reading wrong binary data for tags