Fixed a bug in selectOption