Fixed backend error when page load