NRFE-296: test for bug
NRFE-296: fix bug (a bit silly, but it works)