FIX: tiny bug in lut_manager, crashes before handling error in error case, preventing the useful error message from ever showing up