Bugfix when init is null in for loop