fix of the bug fix, courtesy of Robert Varga