fixes a regression issue (initially reported in #11) that was reintroduced in 2f7bd5c53a855fee512e3ccf021641f1d1ab942e