Fix variable error in dynamic colour calc