fixed a bug with toLowerCase in ie9