Fixed crashing.