fix errors of specs