bug in check response return type