fixed incorrect page when open file

@vincentlaucy please check