fixed the seg fault issues