fixed a bug on #painPage