fixes main pagesspace