Fix last three pixels not working