fixed kernel errors