Commit ceeae30f47b9d628484ae398bc38f3f60ee8eab4

Behdad Esfahbod 2013-01-31T19:27:36

Really fix setmode this time Thanks to Khaled for spotting it.