fix page parsing method