fixed incorrect page when open file