Fix BaseWindow center method