Fixed wrong ordering of parameters in the attribute recalculation