fixed the problem with powermanager