Bug fix variable name wrong