fix pseudo color calculation