remove useless conditional.
Merge branch 'bugfixes' into 3.1