fixed bug in selenium test