fixed missing variable change