fix raycaster and gui updates