Fixed bug in pi2