fix for firstpainttime