fixed demote and promote