Fixed issue when tools is just a single table