Fixing redraw() issue in upload element