Fix wrong naming of variables