Fixed else-handling error.