Fixed bug with zero powers