fixed weird kernel thread problem. May others occure because of a stack overflow