Correcting wrong variables names