Fix sed to replace by the correct var