fix issue with multiple edit (#4)