fix centered bug