Core barrel with inside flange