fixed the error with rendering the page in empty fashion