Fix spec build error