fixed error where all rgb was the same