fixing non-existing variables