Fix pixel data index