I have a feeling you're using the wrong id for the master keys, that's why it will not program, check id on valet key and get proper master keys

Sent from my GT-I9152P using Tapatalk