fix problem with edit