Add fix for dependency issue when invoking callback from native JS