fix Dynamic and simplify Gene