fixed strange error with errors