BUGFIX: initialize variable to avoid localunbounderror