Now the simple shader can work!

1. fixed two bugs in KSC.
2. fixed several bugs in KRT.