fix energy check.

whoops.