Replace invalid getter with valid one.