fix addModlist and modifyModlist