minor bug fixes

bug testing in Safari