remove uneeded nsdict to comply with the generated template code