It's not a bug. That's the normal behaviour.
If you don't want the trailing slash, change your custom permalink to structure to:
%parent%/%slug%
or
%slug%
If you don't want the trailing slash, change your custom permalink to structure to:
%parent%/%slug%
or
%slug%