Simple fixes

two bug fixes.