fixes some small errors