[BUG_FIX] Fix memcpy abuse problem

[DESCRIPTION]
- Fix memcpy abuse problem
- Rename the terminal function