Fixed minor issue in function "__inherit"