fix powerup code