fixed cleanup stylesheet for mac os x and fixed final character input