Default [Q] problem after unlocked i317

I have at&t samsung i317, I unlocked it with a code successfully, but anytime i reboot the phone it will ask for unlock code again, any help?