fixed seg fault
cleaning