Fixed some division and power bugs
Fixed some division and power bugs