Fixed integration errors