fixed some variables change errors