Fix a bug when redefining entity