Fix 500 happening if no quote is found