937 upload error on advanced compilation

@prabhasp thanks, this fixe the upload events.