Fix broken factory
Update gem dependencies