loading bug

now error should be desplayed and the page should reaload