’We had so many episodes before we started to understand,’ Chuck Lorre said about initial series failure