fix intensity value comparison (it should be compared as number rather than a string)