fix input issue in firefox