fixing license picker function