Fixing problems with license token in portal