500 error for some pages, but fixed upon refresh