Wrong variable was being set