Fixed some code template bugs