fix center bug