Fixed some JPG cases