found bug in setting flux