Fix one more bug in globals