fixing the debug method and api end point for busses search