Fixed some small integration errors