fixed a bug post effect will draw incompletely (added resize for it)
fixed a crash bug when project is recreated caused on MainWindow