Fix the "addToPowerList" function.

Signed-off-by: Matt Cleveland <mgcleveland@gmail.com>