removed bad assignment in packColor