Replace incorrect 'if' in the previous commit by 'elsif'