fixed issue with taking powers