fix leftover variable