Changed the variable used to set center, the previous one was incorrect