remove unreachable code

better fix than 21924cae74ba541d0a2ed035d241346d3c376eb8