Fixed the new library require code.