Fixed bug in index.js when fetching triposes if data is empty