Fix require to immutable state