shim in fix for raycasting