empty option list bug fix