Variable name correction
Bug fix