Bug correction for pic upload