fixed bugs in EditPCaseComponent