fixed a bug in the class win-center