fix for cortex optimization