fix bugs in the ss1 shader