fix error: Memory access error.