Fixed the attributes problem and also the factory type issue