fixed bug in spec