workaround for camera freezes