fixes 2 small errors