Added variable in wrong place