fix error if no PM selected