Fixed kernel Optimizations errors