cal flux mat
fix bug