fix bugs for selenium test
update