fix overflowing intensities