Fixed some minor errors