Wrong variable in Warning message