fix weird chrome behaviour