Fix crashing with black and white print