minor bug fixes 1