fixed bug that 'with' spec is invalid.