fixed a crazy selenium behaviour.