Fixed running kernel detection failure