Fixed some problems with licence import