Corrected the pixel alignment bug