fixing broken edit