fixed Raycaster closure bug