Fix typo: replace else by if