Fix a  logic issue introduced with refactoring
#905: Add support for the @internal inline tag