Fix build problem in spec