Fixes var bugs.