I had a similar problem with the detail shader from the wiki.
Just try to change colorop[3]=modulate2x; into colorop[3]=modulate;

I think that should fix your problem.