Fix Math error in dynamic colour calc