Fixed issue with reading from TreeBase