fixing makeapi crashing with no results also random extra div tag