fix variable names bug