set the image and the locked categories but it doesn't unlock the good category
change the way of setting the unlocked categories