Blank page bug fix