Hi.
If you plan to build anything via blueprint or ghost building (i think this is a proper name) and you manually cancel it (via right click, canceling it via deconstruction planner does not affect this) causes all automated (did not tested manual) power entities to be cleared.
Only way to mitigate is to use console 'remote.call("Powered_Entities", "Recalculate_Powered_Entities")' but this will disable achievements.
I can reproduce this every time.
On related note - can You add this remote call as a button ? I've used it on few other occasions, like recalculating after config.lua was updated.