Fixed the original memory access error, ran into another