Fixed return value of isManaged