avoid flickring on Safari