fix blob overwrite bug