Fix center bug