Fixed issue with managed