Fixed kernel errors