Fixed issues with powerState