fixed minor bug causing warning for variable names