Fix error preventing page from displaying