fix the bug of center