Fix adding of default condition
Merge pull request #5 from 10Pines/avoid_adding_invalid_conditions

Fix adding of default condition