fix error with variables