some type jpeg bug fix