fix bug on blank page capture.