Fixed api call that was causing blank screen