bugfix about elsif.