fixed jpeg case