localstorage getAttachment binary reading bug fix