Fix code completion problem for code templates #100