fix setting intensity