fix variable assignemt