fixed paint job bug in firefox