Fixed bug in spec script