fixed a rendering problem when changing atmn size