fix licence system