fix kernel error while compiling