fixed a variable name (and php warning)