fixes errors in spec