fix error message on capsule edit