small 500 bug fix