Fix for getting not existing ids