issue #27 - fix it... somehow it passed the test on PC, died on Mac and Linux