fix modal edit bug for custom collections