Fixed color related bugs, have not fixed texture rendering