Fix jpeg issue