fixed else if elif bug