fix blank page bug