fixed drawing for firefox