Fix invalid memory access.