Fixed whitepoint being set to 0 -> crash program