Fixed crash in barista core