Fixed eraser bug with Firefox