fix unique code error