Fixed some small errors