fix scrgb handling