Configfs fix

configfs bug fixes. These 2 fix the problem we met with configfs.