fix a pic upload bug