error 500 bug fixed