Fix center code