Fixed problems with setting attributes immediately after uploading