Fixed bug where resp is None