Fix error 500 dashboard