Fix undefined error on install