bug fixes of second bug sheet -- done except ui/IE