Make sure i var is local