fix bug fot uploading a image