bug fix of registration char dev