Fixed issue for crashing.