Seg fault corrected, but another one popped up, different place tho