Fix bug in powers_controller