Fix local check in framework kernel.