added location reload for 500 error