there is nothing wrong with the code you pasted. your problem must lie elsewhere.
and you need to be significantly more detailed in the problem besides "the map becomes lighter or something"....
or something could mean literally anything in the world. rendering the map makes your computer explode falls into the category of "or something".
give more detailed description of problem (best with screenshots) and more code.