Fix globals. Fix init