Fix bug: some pixels r/g/b value are negative