fixed crash due to rawpointer allocation when unplug replug device