such strage behavior on Linux Mint, by making small adjustment with simply re-organsing the code order a bit, now I am good.