fixed issue with license detection