handle lastcolor properly