Fixed in db5698b. Although I think @zxiiro was saying that resmap is not used anywhere atm, so maybe it's better to just remove this.