fix an uninitialized action ray when hitting spacebar