fixing overflow issue on firefox