fix append() error in constructor by adding new repository event