fix bug with license checking