Fixed bug in automatic shader conversion code