Missing then in an if on line 1366
Merge pull request #36 from fercalbla/patch-1

Missed a 'then'. Thanks fercalbla.