smart fix, without javascript