Fix big bug in is_inner().

Small but serious bug fix.