add condition before processing
Merge pull request #365 from arnaudbey/fixes

add condition before processing