Attempted to fix NPE due to raycast crashing JVM