fix create chardev class