Luckily, this is easy to fix, just:
run gconf-editor then,
Change apps -> metacity -> general -> button_layout to ':minimize,maximize,close' without quotes
run gconf-editor then,
Change apps -> metacity -> general -> button_layout to ':minimize,maximize,close' without quotes