fix api_view issue