fix spec condition