Fixes readonly value logic.