fixed some missing errors