fixed jpeg error