Fix error at new event or resource. Related with changes of #69