Fix wrong logic with set color in centos 5