Fixed unintentional memory error