fix copy from and to user mode using the proper way