Trying to fix error with non-int center values