fix page reading