minor error fixing