delete working, but weird bug for < 5 elements