fix upload trigger bug