fixed errors in spec