fixes #5449

missing variable updating lead to APCs stuck in green status during powersinks.
Merge pull request #5558 from Walter0o/apc_fix

fixes #5449