Why don't you use arm 7 or Rudolph anti-piracy patch? if you need it go to
http://gbatemp.net/index.php?showtopic=179092&hl=Rudolph
download the software. get a clean version of SS or HG and patch it with it first.
After that the file should be a BAK file (If having problem change it to NDS...