Revert "Remove redundant check in auto-centering"

This reverts commit 86b49322f5c4e2b0e44193ef0c9e8a9b63290bba.