Broke something with window centering

Need to figure out why it is not using the correct process