fix offer codes being readonly