Fix problem with setting variables.