fix camera when use flash