Fixed bug in xcenter