Fix bugs in the power and rotation user interface implementation.