Fix for crash in lab activity