Corrected bugs in value management.