Fix gsp for addLicense  ,also error in index. closes #804