The dealer was applying the Moving Button rule not the Dead Button Rule.
See here for more info :
http://www.homepokertourney.com/button.htm
I much prefer the Dead Button rule personally, and it is certainly the rule applied in most places, both online and B&M poker rooms.