gsm m10

Hello!
I will try to do gsm Project and when I call First time, open relay 1 for 5 sec and whith the next call, open the second relay for 5 sec
All its OK but when power cut off and then On the ralays go On and Off some times very fast.
What can I do? Relays are connected to pin 12 and 13