debug when edit license