Take a peek at this. It's fairly easy to see how the story became garbled over time.
http://ib205.tripod.com/ahmose_1_1.html
Especially this:
http://ib205.tripod.com/ahmose_1_1.html
Especially this:
Quote: Ahmose had troubles of his own with his kingdom, he left the siege of Avaris in the control of his military commanders so that he was free to placate a rebellion in the Theban region. When Ahmose returned to Avaris he found that negotiations had been taking place between the Hyksos and his military commanders the Hyksos were allowed to leave Egypt gracefully in return for surrendering the city (1532 BC).
...However, Ahmose was not going to let his enemy escape so easily the Egyptian army pursued the Hyksos people into southern Palestine to Sharuhen. The city was put under siege by the Egyptians, after three years the Hyksos once more fled this time into Syria. Again the Egyptians followed, but Ahmose finally returned home to Egypt.